import http from '@/utils/request'
// 登录
export const loginApi = (data) => http.post('/users/login', data)

// 注册
export const registerApi = (data) => http.post('/users/register', data)


// 获取用户信息
export const getInfoApi = () => http.get('/users/info')

// 退出登录
export const logoutApi = () => http.post('/users/logout')

// 修改密码
export const updatePwdApi = (data) => http.put('/users/update-pwd',data)


// 修改用户信息
export const updateInfoApi = (data) => http.put('/users/info', data)